<!DOCTYPE HTML>
<html>
	<head>
		<title>login</title>
		<style type="text/css">
			body {
				font-size: 20px;
				font-family: 宋体;
			}
		</style>
		<link rel="stylesheet" type="text/css" href="css/login.css"/>
	</head>
	<body style="{font-size: 20px;font-family: 宋体;}">
		<div>
			<form action="" method="get" onsubmit="return login()">
				账号:<input id="account" value="" type="text" name="account">
				密码:<input id="password" value="" type="password" name="password">
				<input type="submit" value="登录">
			</form>
		</div>
		<script type="text/javascript">
			function login(){
				var account = document.getElementById("account").value;
				var password = document.getElementById("password").value;
				if(account=="" || password == "") {
					alert("账号或密码不能为空，不予提交");
					return false;
				} else {
					return true;
				}
			}
		</script>
	</body>
</html>
